class Stat_Client
{
public:

	int init(const Config& config)
	{
	}
	
	int open()
	{
		Config config("client.stat.txt");
		return init(config);
	}

	int run()
	{
		if (open() == -1)
			return ACE_ERROR_RETURN((ACE_ERROR, "%IStat_Client open failed."));
		
		while (wait_for_events() != -1)
		{
			if (handle_connections() == -1)
				;
			if (hadle_data() == -1)
				;
		}
		
		return 0;
	}
};
